﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using l1cs.server.model.Instance;
using l1cs.server.serverpackets;

namespace l1cs.server.clientpackets
{
    public class C_ShopList : ClientBasePacket
    {
        private const String _C_SHOP_LIST = "[C] C_ShopList";
        private static Logger _log = Logger.getLogger( typeof( C_ShopList ).FullName );

        public C_ShopList( byte[] abyte0, ClientThread clientthread )
            : base( abyte0 )
        {

            int type = readC();
            int objectId = readD();

            L1PcInstance pc = clientthread.getActiveChar();
            if ( pc.isGhost() )
            {
                return;
            }

            pc.sendPackets( new S_PrivateShop( pc, objectId, type ) );
        }

        override
        public String getType()
        {
            return _C_SHOP_LIST;
        }
    }
}